package cn.com.se.sharepictrue.widget;

import android.app.ProgressDialog;
import android.content.Context;

/**
 * Created by plusBrackets on 2015/12/4.
 */
public class MyProgressDialog extends ProgressDialog{
    public MyProgressDialog(Context context,String message) {
        super(context);
        this.setMessage(message);
        this.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        this.setCancelable(false);
    }

    public void show(String message)
    {
        this.dismiss();
        this.setMessage(message);
        this.show();
    }

}
